package com.yourenbang.lingyun.transaction.mapper;

import com.yourenbang.lingyun.transaction.web.domain.po.Merchant;
import org.apache.ibatis.annotations.Param;

public interface MeMerchantLinkUser21Mapper {

    /**
     * 查询merchantUserBaseId
     */
    String selectByAppUserBaseId(@Param("appUserBaseId") String appUserBaseId, @Param("channelId") Short channelId);

    /**
     * 查询merchantUserBaseId通过商户号
     * @param appUserBaseId,merchantNo
     * @param channelId
     * @return
     */
    String selectByAppUserBaseIdAndMerchantNo(@Param("appUserBaseId") String appUserBaseId, @Param("channelId") Short channelId,
                                              @Param("merchantNo") String merchantNo);

    /**
     * 获取商户信息
     */
    Merchant getMerchantByPlatNo(@Param("userBaseId") String userBaseId, @Param("channelId") Short channelId, @Param("platNo") Short platNo);
}
